package org.example;

public class h4 {
    public static void main(String[] args) {
        //最小的三位数是100
        for(int a=100;a<1000;a++){
            int n1=a/100%10;
            int n2=a/10%10;
            int n3=a%10;
            if(n1*n1*n1+n2*n2*n2+n3*n3*n3==a){
                System.out.println(a);
            }
        }
    }
}
